<template>
    <AppTopnav></AppTopnav>
    <AppHeader></AppHeader>
    <AppHeaderSticky></AppHeaderSticky>
    <div class="app-body">
        <!-- 二级路由 -->
        <RouterView></RouterView>
    </div>
    <AppFooter></AppFooter>
</template>
<script>
import AppTopnav from '@/components/app-topnav.vue'
import AppHeader from '@/components/app_header.vue'
import AppFooter from '@/components/app-footer.vue'
import AppHeaderSticky from '@/components/app-header-sticky.vue'
import { useStore } from 'vuex'
export default {
    name: 'Layout',
    components: {
        AppTopnav,
        AppHeader,
        AppFooter,
        AppHeaderSticky
    },
    setup(){
        const store = useStore()
        // 获取下分类数据
        store.dispatch('category/getList')
    }
}
</script>
<style scoped lang="less">
.app-body {
    min-height: 600px;
}
</style>